package com.example.microinvestcommon.service;
//Redis服务类
public interface RedisService {
    //存入邮箱验证码数据
    void storeVerificationCode(String email, String code);
    //判断邮箱对应的验证码是否正确
    boolean validateVerificationCode(String email, String code);
    //存入orderId到redis中
    void storeOrderId(String orderId,String userId);
    //判断orderId是否存在
    Boolean isOrderIdExist(String orderId,String userId);
    //移除orderId
    void removeOrderId(String orderId,String userId );
}
